public class StudentGrade {
    private String name;
    private String studentId;
    private String courseName;
    private int grade;

    // 添加这个构造函数
    public StudentGrade(String name, String studentId, String courseName, int grade) {
        this.name = name;
        this.studentId = studentId;
        this.courseName = courseName;
        this.grade = grade;
    }

    // 其他getter方法保持不变
    public String getName() {
        return name;
    }

    public String getStudentId() {
        return studentId;
    }

    public String getCourseName() {
        return courseName;
    }

    public int getGrade() {
        return grade;
    }
}
